<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<script src="https://cdn.bootcdn.net/ajax/libs/vue/2.6.9/vue.js"></script>

<style>
    .outer {
        width: 200px;
        height: 200px;
        background-color: red
    }
    .inner {
        width: 100px;
        height: 100px;
        background-color: pink
    }
</style>
<body>
    <div id="box">
        <!-- 按键修饰符，在事件后面填写按键码或者按键码的别名 keycode -->
        <input type="text" @keyup.enter="test">
        <input type="text" @keyup.13="test">
    </div>
    <script>
        const v_c = new Vue({
            el: '#box',
            data: {
                url: 'http://baidu.com'
            },
            methods: {
                test() {
                    console.log('啊啊啊啊啊啊啊啊')
                }
            }
        })
    </script>
</body>
</html>